home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / DRIVER.CAB / hpc46006.gpd < prev    next >
Encoding:
Text File  |  2003-02-21  |  48.5 KB  |  1,565 lines

  1. *%%
  2. *%% HP Color LaserJet 4600 PCL6
  3. *%%
  4. *%% 
  5. *%%
  6.  
  7. *%%
  8. *%% Global Entries
  9. *%%
  10. *GPDSpecVersion: "1.0"
  11. *GPDFileVersion: "1.34.2"
  12.  
  13. *%%% ======================
  14. *%%% Include standard GPD files
  15. *%%% =====================
  16. *Include: "StdNames.gpd"
  17.  
  18. *%%
  19. *%% Model Specific Global Entries
  20. *%%
  21. *GPDFileName: "HPC46006.GPD"
  22. *ModelName: "HP Color LaserJet 4600 PCL6"
  23. *MaxCopies: 999
  24. *PrintRate: 16
  25. *PrintRatePPM: 16
  26. *PrintRateUnit: PPM
  27. *MasterUnits: PAIR(1200, 1200)
  28. *CodePage: 1252
  29. *ResourceDLL: "pclxl.dll"
  30. *PrinterType: PAGE
  31. *Personality: =PERSONALITY_PCLXL
  32. *%%%rcPersonalityID: =PERSONALITY_PCLXL_DISPLAY
  33. *%%% *rcPrinterIconID:
  34. *%%% *HelpFile:
  35.  
  36.  
  37. *%%% ======================
  38. *%%% Macros
  39. *%%% ======================
  40. *Include: "pjl.gpd"
  41. *Include: "p6font.gpd"
  42. *Include: "p6disp.gpd"
  43.  
  44. *%%% ======================
  45. *%%% Main
  46. *%%% ======================
  47. *Include: "pclxl.gpd"
  48.  
  49.  
  50. *Feature: RESDLL
  51. {
  52.     *Option: HPCSTRDLL
  53.     {
  54.         *Name: "hpcstr.dll"
  55.     }
  56. }
  57.  
  58.  
  59.  
  60. *%%% ======================
  61. *%%% DOC_SETUP, PAGE_FINISH
  62. *%%% , JOB_FINISH
  63. *%%% ======================
  64.  
  65. *Macros: PCLXLCommand
  66. {
  67. *%%% ---------------------------------------------------------------------------
  68. *%%% PCL XL Stream Header
  69. *%%% ---------------------------------------------------------------------------
  70. PCLXL_StreamHeader: ") HP-PCL XL;3;0;"
  71. +                   "Comment Copyright(c) 1999 Microsoft Corporation<0A>"
  72.  
  73. PCLXL_OpenDataSource: =ubyte "<00>" =attr_ubyte =SourceType =ubyte "<01>" =attr_ubyte =DataOrg =OpenDataSource
  74.  
  75. *%%% ---------------------------------------------------------------------------
  76. *%%% BeginSession
  77. *%%%     Measure(ubyte) & UnitsPerMeasure(uint16_xy) & {ErrorReport(ubyte)}
  78. *%%% ---------------------------------------------------------------------------
  79. PCLXL_BeginSession1200: =uint16_xy "<b004b004>" =attr_ubyte =UnitsPerMeasure =ubyte
  80. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  81.  
  82. PCLXL_BeginSession600: =uint16_xy "<58025802>" =attr_ubyte =UnitsPerMeasure =ubyte
  83. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  84.  
  85. PCLXL_BeginSession300: =uint16_xy "<2c012c01>" =attr_ubyte =UnitsPerMeasure =ubyte
  86. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  87.  
  88. Width: %m{ RasterDataWidthInBytes }
  89. Height: %m{ RasterDataHeightInPixels }
  90. DataSize: %l{ NumOfDataBytes }
  91. FntHeight: %l{ FontHeight*600/TextYRes }
  92. FntNextGlyph: %l{ NextGlyph }
  93.  
  94. *%%% ---------------------------------------------------------------------------
  95. *%%% BeginRaster
  96. *%%%     ColorDepth(ubyte) & ColorMapping(ubyte) & SourceWidth(uint16) &
  97. *%%%     SourceWidth(uint16) & SourceHeight(uint16)
  98. *%%% ---------------------------------------------------------------------------
  99. PCLXL_CmdBeginRaster: =ubyte =e1Bit =attr_ubyte =ColorDepth
  100. +                     =ubyte =eDirectPixel =attr_ubyte =ColorMapping
  101. +                     =uint16 =Width =attr_ubyte =SourceWidth
  102. +                     =uint16 =Height =attr_ubyte =SourceHeight
  103. +                     =uint16_xy =Width =Height =attr_ubyte =DestinationSize
  104. +                     =BeginImage
  105. +                     =ubyte =eNoCompression =attr_ubyte =CompressMode
  106. +                     =ubyte "<00>" =attr_ubyte =StartLine
  107. +                     =uint16 =Height =attr_ubyte =BlockHeight
  108. +                     =ReadImage
  109.  
  110. PCLXL_CmdSendBlockData: =dataLength =DataSize "<0000>"
  111.  
  112. DestinationX: %l{DestX}
  113. DestinationY: %l{DestY}
  114. DestinationXRel: %l{DestYRel}
  115. DestinationYRel: %l{DestXRel}
  116. NumOfCopy: %l{NumOfCopies}
  117. PrintDir: %l{PrintDirInCCDegrees}
  118. FntName: =ubyte_array =uint16 "<1000>" "MS PCLXLFont " %3d{CurrentFontID}
  119. }
  120.  
  121. *Macros: MediaSizeStrings
  122. {
  123.     s8KPaper:       =ubyte "<05>" "ROC8K"
  124.     s16kPaper:      =ubyte "<06>" "ROC16K"
  125.     sJisExecPaper:  =ubyte "<07>" "JISEXEC"
  126.     sB5ISOPaper:    =ubyte "<05>" "ISOB5"
  127. }
  128.  
  129. *Macros: AttributeTag
  130. {
  131.     AllObjectTypes:       "<1d>"
  132.     TextObjects:          "<1e>"
  133.     VectorObjects:        "<1f>"
  134.     RasterObjects:        "<20>"
  135.     ColorTreatment:       "<78>"
  136. }
  137.  
  138.  
  139. *Macros: AttributeEnum
  140. {
  141. *%% MediaType
  142.     eLight:         "Light"
  143.     eHeavy:         "Heavy"
  144.     eGloss:         "Gloss"
  145.     eHeavyGloss:    "Heavy Gloss"
  146.     eEnvelope:      "Envelope"
  147.     eGlossFilm:     "Gloss Film"
  148.  
  149. *%% AllObjectTypes
  150.     eDisable:       "<00>" 
  151.     eEnable:        "<01>" 
  152.  
  153.     eTonerBlack:    "<00>" 
  154.     eProcessBlack:  "<01>" 
  155.     eNormal:        "<02>" 
  156.     eLight:         "<03>" 
  157.  
  158.     eHighLPI:       "<00>"
  159.     eMediumLPI:     "<01>"
  160.     eLowLPI:        "<02>"
  161.  
  162. *%% ColorTreatment
  163.     eNoTreatment:    "<00>"
  164.     eScreenMatch:    "<01>"
  165.     eVivid:          "<02>"
  166. }
  167.  
  168. *Macros: OperatorTag
  169. {
  170.     SetNeutralAxis:         "<7e>"
  171.     SetAdaptiveHalftoning:  "<94>"
  172.     SetColorTrapping:       "<92>"
  173.     SetColorTreatment:      "<58>"
  174.     SetPaintTxMode          "<78>"
  175.     SetSourceTxMode         "<7c>"
  176. }
  177.  
  178. *%%% ======================
  179. *%%% Features and Options
  180. *%%% ======================
  181. *Command: CmdEnableDRC: " "
  182.  
  183.  
  184. *%% Orientation
  185. *Feature: Orientation
  186. {
  187.     *rcNameID: =ORIENTATION_DISPLAY
  188.     *DefaultOption: PORTRAIT
  189.     *Option: PORTRAIT
  190.     {
  191.         *rcNameID: =PORTRAIT_DISPLAY
  192.     }
  193.     *Option: LANDSCAPE_CC90
  194.     {
  195.         *rcNameID: =LANDSCAPE_DISPLAY
  196.     }
  197. }
  198.  
  199. *Command: CmdStartJob
  200. {
  201.     *Order: JOB_SETUP.1
  202.     *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_RET_ON
  203. }
  204.  
  205. *%%% ======================
  206. *%%% Added for PCL 6 Color
  207. *%%% ======================
  208. *Feature: ColorMode
  209. {
  210.     *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  211.     *DefaultOption: 24bpp
  212.     *Option: Mono
  213.     {
  214.         *rcNameID: =MONO_DISPLAY
  215.         *DevNumOfPlanes: 1
  216.         *DevBPP: 24
  217.         *DrvBPP: 24
  218.         *Color? : FALSE
  219.         *PaletteSize: 1
  220.         *PaletteProgrammable? : TRUE
  221.         *Command: CmdDefinePaletteEntry { *Cmd: "" }
  222.     }
  223.     *Option: 24bpp
  224.     {
  225.         *rcNameID: =24BPP_DISPLAY
  226.         *DevNumOfPlanes: 1
  227.         *DevBPP: 24
  228.         *DrvBPP: 24
  229.         *PaletteSize: 256
  230.         *PaletteProgrammable? : TRUE
  231.         *Command: CmdDefinePaletteEntry { *Cmd: "" }
  232.     }
  233. }
  234.  
  235.  
  236. *%%% ======================
  237. *%%% DOC_SETUP
  238. *%%% ======================
  239.  
  240. *%%% ======================
  241. *%%% DOC_SETUP.1
  242. *%%% START PLJ JOB
  243.  
  244. *%%% ======================
  245. *%%% DOC_SETUP.4
  246. *%%% Collate
  247. *Feature: Collate
  248. {
  249.     *rcNameID: =COLLATE
  250.  
  251.     *DefaultOption: OFF
  252.     *Option: ON
  253.     {
  254.         *rcNameID: =ON_DISPLAY
  255.         *switch: PrinterHardDisk
  256.         {
  257.             *case: FALSE
  258.             {
  259.                 *Command: CmdSelect
  260.                 {
  261.                     *Order: JOB_SETUP.5
  262.                     *Cmd: =PJL_COLLATE_OFF
  263.                 }
  264.             }
  265.             *case: TRUE
  266.             {
  267.                 *Command: CmdSelect
  268.                 {
  269.                     *Order: JOB_SETUP.5
  270.                     *Cmd: =PJL_COLLATE_ON
  271.                 }
  272.             }
  273.         }
  274.     }
  275.     *Option: OFF
  276.     {
  277.         *rcNameID:=OFF_DISPLAY
  278.         *Command: CmdSelect
  279.         {
  280.             *Order: JOB_SETUP.5
  281.             *Cmd: =PJL_COLLATE_OFF
  282.         }
  283.     }
  284. }
  285.  
  286. *%%% ======================
  287. *%%% DOC_SETUP.5
  288. *%%%     RESOLUTION
  289. *%%%     ENTER LANGUAGE=PCLXL
  290. *%%%     PCL XL Stream Header
  291. *%%%     BeginSession
  292. *%%% CmdEndRaster
  293. *%%%     EndImage
  294. *%%% CmdSendBlockData
  295. *%%%     EndImage
  296. *Feature: Resolution
  297. {
  298.     *rcNameID: =RESOLUTION_DISPLAY
  299.     *DefaultOption: Option1
  300.     *Option: Option1
  301.     {
  302.         *Name: "600 x 600 " =DOTS_PER_INCH
  303.         *DPI: PAIR(600, 600)
  304.         *TextDPI: PAIR(600, 600)
  305.         *MinStripBlankPixels: 32
  306.         EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  307.         *SpotDiameter: 100
  308.         *Command: CmdBeginRaster
  309.         {
  310.             *Cmd : =PCLXL_CmdBeginRaster
  311.         }
  312.  
  313.         *Command: CmdEndRaster { *Cmd : =EndImage }
  314.         *Command: CmdSendBlockData
  315.         {
  316.             *Cmd: =PCLXL_CmdSendBlockData
  317.         }
  318.  
  319.         *Command: CmdSelect
  320.         {
  321.             *Order: JOB_SETUP.7
  322.             *Cmd: =PJL_RESOLUTION_600 =PJL_BITSPERPIXEL_1 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600 =PCLXL_OpenDataSource
  323.         }
  324.     }
  325. }
  326.  
  327. *%%% ======================
  328. *%%% PAGE_FINISH
  329. *%%% ======================
  330.  
  331. *%%% ======================
  332. *%%% PAGE_FINISH.3
  333. *Command: CmdEndPage
  334. {
  335.     *Order: PAGE_FINISH.1
  336.     *Cmd: =uint16 =NumOfCopy =attr_ubyte =PageCopies =EndPage
  337. }
  338.  
  339. *%%% ======================
  340. *%%% JOB_FINISH.1
  341. *%%% CmdEndJob
  342. *Command: CmdEndJob
  343. {
  344.     *Order: JOB_FINISH.1
  345.     *Cmd: =CloseDataSource =EndSession =PJL_ENDJOB
  346. }
  347.  
  348. *%%% ======================
  349. *%%% PAGE_SETUP
  350. *%%% ======================
  351.  
  352. *%%% ======================
  353. *%%% PAGE_SETUP.4
  354. *%%% BeginPage(0x43)
  355. *%%%     Orientation(40), MediaSize(37), MediaSource(38)
  356. *%%%     ubyte            ubyte          ubyte
  357.  
  358. *BlockMacro: PaperConstraints
  359. {
  360.     *Constraints: LIST(InputBin.Option3, InputBin.Option4)
  361. }
  362.  
  363. *Feature: PaperSize
  364. {
  365.     *rcNameID: =PAPER_SIZE_DISPLAY
  366.     *DefaultOption: LETTER
  367.     *Option: LETTER                                 *% physical page (10200, 13200 - 8.5" x 11.0")
  368.     {
  369.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *% rcid 1000
  370.  
  371.         *switch: Orientation
  372.         {
  373.             *case: PORTRAIT
  374.             {
  375.                 *PrintableArea: PAIR(9800, 12800)
  376.                 *PrintableOrigin: PAIR(200, 200)
  377.                 *CursorOrigin: PAIR(200, 200)
  378.                 *Command: CmdSelect
  379.                 {
  380.                     *Order: PAGE_SETUP.4
  381.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  382. +                         =ubyte_array =sLetterPaper =attr_ubyte =MediaSize =BeginPage
  383. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  384.  
  385.                 }
  386.             }
  387.             *case: LANDSCAPE_CC90
  388.             {
  389.                 *PrintableArea: PAIR(9800, 12800)
  390.                 *PrintableOrigin: PAIR(200, 200)
  391.                 *CursorOrigin: PAIR(200, 13000)
  392.                 *Command: CmdSelect
  393.                 {
  394.                     *Order: PAGE_SETUP.4
  395.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  396. +                         =ubyte_array =sLetterPaper =attr_ubyte =MediaSize =BeginPage
  397. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  398.  
  399.                 }
  400.             }
  401.         }
  402.     }
  403.     *Option: LEGAL                                  *% physical page (10200, 16800 - 8.5" x 14.0"))
  404.     {
  405.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  406.         *switch: Orientation
  407.         {
  408.             *case: PORTRAIT
  409.             {
  410.                 *PrintableArea: PAIR(9800, 16400)
  411.                 *PrintableOrigin: PAIR(200, 200)
  412.                 *CursorOrigin: PAIR(200, 200)
  413.                 *Command: CmdSelect
  414.                 {
  415.                     *Order: PAGE_SETUP.4
  416.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  417. +                         =ubyte_array =sLegalPaper =attr_ubyte =MediaSize =BeginPage
  418. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  419.  
  420.                 }
  421.             }
  422.             *case: LANDSCAPE_CC90
  423.             {
  424.                 *PrintableArea: PAIR(9800, 16400)
  425.                 *PrintableOrigin: PAIR(200, 200)
  426.                 *CursorOrigin: PAIR(200, 16600)
  427.                 *Command: CmdSelect
  428.                 {
  429.                     *Order: PAGE_SETUP.4
  430.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  431. +                         =ubyte_array =sLegalPaper =attr_ubyte =MediaSize =BeginPage
  432. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  433.  
  434.                 }
  435.             }
  436.         }
  437.     }
  438.     *Option: EXECUTIVE                              *% physical page (8700, 12600 - 7.25" x 10.5"))
  439.     {
  440.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  441.         *switch: Orientation
  442.         {
  443.             *case: PORTRAIT
  444.             {
  445.                 *PrintableArea: PAIR(8300, 12200)
  446.                 *PrintableOrigin: PAIR(200, 200)
  447.                 *CursorOrigin: PAIR(200, 200)
  448.                 *Command: CmdSelect
  449.                 {
  450.                     *Order: PAGE_SETUP.4
  451.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  452. +                         =ubyte_array =sExecPaper =attr_ubyte =MediaSize =BeginPage
  453. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  454.  
  455.                 }
  456.             }
  457.             *case: LANDSCAPE_CC90
  458.             {
  459.                 *PrintableArea: PAIR(8300, 12200)
  460.                 *PrintableOrigin: PAIR(200, 200)
  461.                 *CursorOrigin: PAIR(200, 12400)
  462.                 *Command: CmdSelect
  463.                 {
  464.                     *Order: PAGE_SETUP.4
  465.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  466. +                         =ubyte_array =sExecPaper =attr_ubyte =MediaSize =BeginPage
  467. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  468.  
  469.                 }
  470.             }
  471.         }
  472.     }
  473.     *Option: A4                                      *% physical page (9920, 14030 - 8.2677" x 11.693")
  474.     {
  475.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1008
  476.         *switch: Orientation
  477.         {
  478.             *case: PORTRAIT
  479.             {
  480.                 *PrintableArea: PAIR(9520, 13630)
  481.                 *PrintableOrigin: PAIR(200, 200)
  482.                 *CursorOrigin: PAIR(200, 200)
  483.                 *Command: CmdSelect
  484.                 {
  485.                     *Order: PAGE_SETUP.4
  486.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  487. +                         =ubyte_array =sA4Paper =attr_ubyte =MediaSize =BeginPage
  488. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  489.                 }
  490.             }
  491.             *case: LANDSCAPE_CC90
  492.             {
  493.                 *PrintableArea: PAIR(9520, 13630)
  494.                 *PrintableOrigin: PAIR(200, 200)
  495.                 *CursorOrigin: PAIR(200, 13830)
  496.                 *Command: CmdSelect
  497.                 {
  498.                     *Order: PAGE_SETUP.4
  499.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  500. +                         =ubyte_array =sA4Paper =attr_ubyte =MediaSize =BeginPage
  501. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  502.  
  503.                 }
  504.             }
  505.         }
  506.     }
  507.     *Option: A5                                      *% physical page (6992, 9920 - 5.8268" x 8.2677")
  508.     {
  509.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  510.         *Constraints: Duplex.VERTICAL
  511.         *Constraints: Duplex.HORIZONTAL
  512.  
  513.         *switch: Orientation
  514.         {
  515.             *case: PORTRAIT
  516.             {
  517.                 *PrintableArea: PAIR(6592, 9520)
  518.                 *PrintableOrigin: PAIR(200, 200)
  519.                 *CursorOrigin: PAIR(200, 200)
  520.                 *Command: CmdSelect
  521.                 {
  522.                     *Order: PAGE_SETUP.4
  523.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  524. +                         =ubyte_array =sA5Paper =attr_ubyte =MediaSize =BeginPage
  525. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  526.  
  527.                 }
  528.  
  529.             }
  530.             *case: LANDSCAPE_CC90
  531.             {
  532.                 *PrintableArea: PAIR(6592, 9520)
  533.                 *PrintableOrigin: PAIR(200, 200)
  534.                 *CursorOrigin: PAIR(200, 9720)
  535.                 *Command: CmdSelect
  536.                 {
  537.                     *Order: PAGE_SETUP.4
  538.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  539. +                         =ubyte_array =sA5Paper =attr_ubyte =MediaSize =BeginPage
  540. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  541.  
  542.                 }
  543.             }
  544.         }
  545.     }
  546.     *Option: ENV_10                                 *% physical page (4948, 11400 - 4.125" x 9.5"))
  547.     {
  548.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1019
  549.         *InsertBlock: =PaperConstraints
  550.         *Constraints: Duplex.VERTICAL
  551.         *Constraints: Duplex.HORIZONTAL
  552.         *switch: Orientation
  553.         {
  554.             *case: PORTRAIT
  555.             {
  556.                 *PrintableArea: PAIR(4548, 11000)
  557.                 *PrintableOrigin: PAIR(200, 200)
  558.                 *CursorOrigin: PAIR(200, 200)
  559.                 *Command: CmdSelect
  560.                 {
  561.                     *Order: PAGE_SETUP.4
  562.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  563. +                         =ubyte_array =sCOM10Envelope =attr_ubyte =MediaSize =BeginPage
  564. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  565.  
  566.                 }
  567.             }
  568.             *case: LANDSCAPE_CC90
  569.             {
  570.                 *PrintableArea: PAIR(4548, 11000)
  571.                 *PrintableOrigin: PAIR(200, 200)
  572.                 *CursorOrigin: PAIR(200, 11200)
  573.                 *Command: CmdSelect
  574.                 {
  575.                     *Order: PAGE_SETUP.4
  576.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  577. +                         =ubyte_array =sCOM10Envelope =attr_ubyte =MediaSize =BeginPage
  578. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  579.  
  580.                 }
  581.             }
  582.         }
  583.     }
  584.     *Option: ENV_DL                                 *% physical page (5196, 10392 - 4.3307" x 8.6614")
  585.     {
  586.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1026
  587.         *InsertBlock: =PaperConstraints
  588.         *Constraints: Duplex.VERTICAL
  589.         *Constraints: Duplex.HORIZONTAL
  590.         *switch: Orientation
  591.         {
  592.             *case: PORTRAIT
  593.             {
  594.                 *PrintableArea: PAIR(4796, 9992)
  595.                 *PrintableOrigin: PAIR(200, 200)
  596.                 *CursorOrigin: PAIR(200, 200)
  597.                 *Command: CmdSelect
  598.                 {
  599.                     *Order: PAGE_SETUP.4
  600.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  601. +                         =ubyte_array =sDLEnvelope =attr_ubyte =MediaSize =BeginPage
  602. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  603.  
  604.                 }
  605.             }
  606.             *case: LANDSCAPE_CC90
  607.             {
  608.                 *PrintableArea: PAIR(4796, 9992)
  609.                 *PrintableOrigin: PAIR(200, 200)
  610.                 *CursorOrigin: PAIR(200, 10192)
  611.                 *Command: CmdSelect
  612.                 {
  613.                     *Order: PAGE_SETUP.4
  614.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  615. +                         =ubyte_array =sDLEnvelope =attr_ubyte =MediaSize =BeginPage
  616. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  617.  
  618.                 }
  619.             }
  620.         }
  621.     }
  622.     *Option: ENV_C5                                 *% physical page (7652, 10818 - 6.3779" x 9.0157"))
  623.     {
  624.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1027
  625.         *InsertBlock: =PaperConstraints
  626.         *Constraints: Duplex.VERTICAL
  627.         *Constraints: Duplex.HORIZONTAL
  628.         *switch: Orientation
  629.         {
  630.             *case: PORTRAIT
  631.             {
  632.                 *PrintableArea: PAIR(7252, 10418)
  633.                 *PrintableOrigin: PAIR(200, 200)
  634.                 *CursorOrigin: PAIR(200, 200)
  635.                 *Command: CmdSelect
  636.                 {
  637.                     *Order: PAGE_SETUP.4
  638.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  639. +                         =ubyte_array =sC5Envelope =attr_ubyte =MediaSize =BeginPage
  640. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  641.  
  642.                 }
  643.             }
  644.             *case: LANDSCAPE_CC90
  645.             {
  646.                 *PrintableArea: PAIR(7252, 10418)
  647.                 *PrintableOrigin: PAIR(200, 200)
  648.                 *CursorOrigin: PAIR(200, 10618)
  649.                 *Command: CmdSelect
  650.                 {
  651.                     *Order: PAGE_SETUP.4
  652.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  653. +                         =ubyte_array =sC5Envelope =attr_ubyte =MediaSize =BeginPage
  654. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  655.  
  656.                 }
  657.             }
  658.         }
  659.     }
  660.     *Option: ENV_B5                                 *% physical page (8314, 11810 - 6.9291" x 9.8425"))
  661.     {
  662.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  663.         *InsertBlock: =PaperConstraints
  664.         *Constraints: Duplex.VERTICAL
  665.         *Constraints: Duplex.HORIZONTAL
  666.         *switch: Orientation
  667.         {
  668.             *case: PORTRAIT
  669.             {
  670.                 *PrintableArea: PAIR(7914, 11410)
  671.                 *PrintableOrigin: PAIR(200, 200)
  672.                 *CursorOrigin: PAIR(200, 200)
  673.                 *Command: CmdSelect
  674.                 {
  675.                     *Order: PAGE_SETUP.4
  676.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  677. +                         =ubyte_array =sB5Envelope =attr_ubyte =MediaSize =BeginPage
  678. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  679.  
  680.                 }
  681.             }
  682.             *case: LANDSCAPE_CC90
  683.             {
  684.                 *PrintableArea: PAIR(7914, 11410)
  685.                 *PrintableOrigin: PAIR(200, 200)
  686.                 *CursorOrigin: PAIR(200, 11610)
  687.                 *Command: CmdSelect
  688.                 {
  689.                     *Order: PAGE_SETUP.4
  690.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  691. +                         =ubyte_array =sB5Envelope =attr_ubyte =MediaSize =BeginPage
  692. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  693.  
  694.                 }
  695.             }
  696.         }
  697.     }
  698.     *Option: ENV_MONARCH                            *% physical page (4648, 9000 - 3.875" x 7.50")
  699.     {
  700.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1036
  701.         *InsertBlock: =PaperConstraints
  702.         *Constraints: Duplex.VERTICAL
  703.         *Constraints: Duplex.HORIZONTAL
  704.         *switch: Orientation
  705.         {
  706.             *case: PORTRAIT
  707.             {
  708.                 *PrintableArea: PAIR(4248, 8600)
  709.                 *PrintableOrigin: PAIR(200, 200)
  710.                 *CursorOrigin: PAIR(200, 200)
  711.                 *Command: CmdSelect
  712.                 {
  713.                     *Order: PAGE_SETUP.4
  714.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  715. +                         =ubyte_array =sMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
  716. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  717.  
  718.                 }
  719.             }
  720.             *case: LANDSCAPE_CC90
  721.             {
  722.                 *PrintableArea: PAIR(4248, 8600)
  723.                 *PrintableOrigin: PAIR(200, 200)
  724.                 *CursorOrigin: PAIR(200, 8800)
  725.                 *Command: CmdSelect
  726.                 {
  727.                     *Order: PAGE_SETUP.4
  728.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  729. +                         =ubyte_array =sMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
  730. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  731.  
  732.                 }
  733.             }
  734.         }
  735.     }
  736.     *Option: B5                                      *% B5 (JIS)
  737.     {                                                *% physical page (8598, 12140 - 7.1653" x 10.118")
  738.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  739.         *switch: Orientation
  740.         {
  741.             *case: PORTRAIT
  742.             {
  743.                 *PrintableArea: PAIR(8198, 11740)
  744.                 *PrintableOrigin: PAIR(200, 200)
  745.                 *CursorOrigin: PAIR(200, 200)
  746.                 *Command: CmdSelect
  747.                 {
  748.                     *Order: PAGE_SETUP.4
  749.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  750. +                         =ubyte_array =sJB5Paper =attr_ubyte =MediaSize =BeginPage
  751. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  752.  
  753.                 }
  754.             }
  755.             *case: LANDSCAPE_CC90
  756.             {
  757.                 *PrintableArea: PAIR(8198, 11740)
  758.                 *PrintableOrigin: PAIR(200, 200)
  759.                 *CursorOrigin: PAIR(200, 11940)
  760.                 *Command: CmdSelect
  761.                 {
  762.                     *Order: PAGE_SETUP.4
  763.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  764. +                         =ubyte_array =sJB5Paper =attr_ubyte =MediaSize =BeginPage
  765. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  766.  
  767.                 }
  768.             }
  769.         }
  770.     }
  771.     *Option: B5_ISO                                      *% B5 (ISO)
  772.     {   
  773.         *rcNameID: RESDLL.HPCSTRDLL.707
  774.         *PageDimensions: PAIR(8312, 11808)
  775.         *Constraints: Duplex.VERTICAL
  776.         *Constraints: Duplex.HORIZONTAL
  777.         *switch: Orientation
  778.         {
  779.             *case: PORTRAIT
  780.             {
  781.                 *PrintableArea: PAIR(7912, 11408)
  782.                 *PrintableOrigin: PAIR(200, 200)
  783.                 *CursorOrigin: PAIR(200, 200)
  784.                 *Command: CmdSelect
  785.                 {
  786.                     *Order: PAGE_SETUP.4
  787.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  788. +                         =ubyte_array =sB5ISOPaper =attr_ubyte =MediaSize =BeginPage
  789. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  790.                  }
  791.              }
  792.              *case: LANDSCAPE_CC90
  793.              {
  794.                 *PrintableArea: PAIR(7912, 11408)
  795.                 *PrintableOrigin: PAIR(200, 200)
  796.                 *CursorOrigin: PAIR(200, 11608)
  797.                 *Command: CmdSelect
  798.                 {
  799.                     *Order: PAGE_SETUP.4
  800.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  801. +                         =ubyte_array =sB5ISOPaper =attr_ubyte =MediaSize =BeginPage
  802. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  803.                  }
  804.              }
  805.         }
  806.  
  807.    }
  808.  
  809.     *Option:16K                                      *% physical page (9300, 12900 - 7.75" x 10.75")
  810.     {
  811.        *rcNameID: RESDLL.HPCSTRDLL.10
  812.        *PageDimensions: PAIR(9300,12900)
  813.        *Constraints: Duplex.VERTICAL
  814.        *Constraints: Duplex.HORIZONTAL
  815.        *switch: Orientation
  816.        {
  817.            *case: PORTRAIT
  818.            {
  819.                *PrintableArea: PAIR(8900,12500)
  820.                *PrintableOrigin: PAIR(200, 200)
  821.                *CursorOrigin: PAIR(200, 200)
  822.                *Command: CmdSelect
  823.                 {
  824.                     *Order: PAGE_SETUP.4
  825.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  826. +                         =ubyte_array =s16kPaper =attr_ubyte =MediaSize =BeginPage
  827. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin   
  828.                 }
  829.            }
  830.            *case: LANDSCAPE_CC90
  831.            {
  832.                *PrintableArea: PAIR(8900, 12500)
  833.                *PrintableOrigin: PAIR(200, 200)
  834.                *CursorOrigin: PAIR(200, 12700)
  835.                *Command: CmdSelect
  836.                 {
  837.                     *Order: PAGE_SETUP.4
  838.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  839. +                         =ubyte_array =s16kPaper =attr_ubyte =MediaSize =BeginPage
  840. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  841.                 }
  842.            }
  843.        }
  844.     }
  845.     *Option:EXECUTIVE_JIS                             *% physical page (10202, 15590 - 8.5039" x 12.992"))
  846.     {                                               
  847.         *rcNameID: RESDLL.HPCSTRDLL.709
  848.         *PageDimensions: PAIR(10205,15590)
  849.         *Constraints: Duplex.VERTICAL
  850.         *Constraints: Duplex.HORIZONTAL
  851.         *switch: Orientation
  852.         {
  853.             *case: PORTRAIT
  854.             {
  855.                 *PrintableArea: PAIR(9802, 15190)
  856.                 *PrintableOrigin: PAIR(200, 200)
  857.                 *CursorOrigin: PAIR(200, 200)
  858.                 *Command: CmdSelect
  859.                 {
  860.                     *Order: PAGE_SETUP.4
  861.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  862. +                         =ubyte_array =sJisExecPaper =attr_ubyte =MediaSize =BeginPage
  863. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  864.                 }
  865.             }
  866.             *case: LANDSCAPE_CC90
  867.             {
  868.                 *PrintableArea: PAIR(9802, 15190)
  869.                 *PrintableOrigin: PAIR(200, 200)
  870.                 *CursorOrigin: PAIR(200, 15390)
  871.                 *Command: CmdSelect
  872.                 {
  873.                     *Order: PAGE_SETUP.4
  874.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  875. +                         =ubyte_array =sJisExecPaper =attr_ubyte =MediaSize =BeginPage
  876. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  877.                 }
  878.             }
  879.         }
  880.     }
  881.     *Option: DBL_JAPANESE_POSTCARD_ROTATED          *% physical page (6992, 9448 - 5.8268" x 7.874")
  882.     {
  883.         *rcNameID: RESDLL.HPCSTRDLL.708
  884.         *PageDimensions: PAIR(6992, 9448)
  885.         *InsertBlock: =PaperConstraints
  886.         *Constraints: Duplex.VERTICAL
  887.         *Constraints: Duplex.HORIZONTAL
  888.         *switch: Orientation
  889.         {
  890.             *case: PORTRAIT
  891.             {
  892.                 *PrintableArea: PAIR(6592,9048)
  893.                 *PrintableOrigin: PAIR(200, 200)
  894.                 
  895.                 *CursorOrigin: PAIR(200, 200)  
  896.                 *Command: CmdSelect
  897.                 {
  898.                     *Order: PAGE_SETUP.4
  899.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  900. +                         =ubyte_array =sJDoublePostcard =attr_ubyte =MediaSize =BeginPage
  901. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  902.  
  903.  
  904.                 }
  905.             }
  906.             *case: LANDSCAPE_CC90
  907.             {
  908.                 *PrintableArea: PAIR(6592,9048)
  909.                 *PrintableOrigin: PAIR(200, 200)
  910.                 *CursorOrigin: PAIR(200, 9248)
  911.                 *Command: CmdSelect
  912.                 {
  913.                     *Order: PAGE_SETUP.4
  914.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  915. +                         =ubyte_array =sJDoublePostcard =attr_ubyte =MediaSize =BeginPage
  916. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  917.  
  918.                 }
  919.             }
  920.         }
  921.     }
  922.  
  923.     *Option: CUSTOMSIZE                                     *% 3x5 - 8.5x14
  924.     {
  925.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1255
  926.         *MinSize: PAIR(3600, 6000)
  927.         *MaxSize: PAIR(10200, 16800)
  928.         *MaxPrintableWidth: 10200
  929.         *MinLeftMargin: 100
  930.         *CenterPrintable?: FALSE
  931.         *Constraints: Duplex.VERTICAL
  932.         *Constraints: Duplex.HORIZONTAL
  933.         *switch: Orientation
  934.         {
  935.             *case: PORTRAIT
  936.             {
  937.                 *CustCursorOriginX:     %d{200}
  938.                 *CustCursorOriginY:     %d{200}
  939.                 *CustPrintableOriginX:  %d{200}
  940.                 *CustPrintableOriginY:  %d{200}
  941.                 *CustPrintableSizeX:    %d{PhysPaperWidth - 400}
  942.                 *CustPrintableSizeY:    %d{PhysPaperLength - 400}
  943.                 *Command: CmdSelect
  944.                 {
  945.                     *Order: PAGE_SETUP.4
  946.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  947. +                         =uint16_xy %l{(PhysPaperWidth*254)/1200}%l{(PhysPaperLength*254)/1200} =attr_ubyte =CustomMediaSize
  948. +                         =ubyte =eTenthsOfAMillimeter =attr_ubyte =CustomMediaSizeUnits =BeginPage
  949. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  950.                 }
  951.             }
  952.             *case: LANDSCAPE_CC90
  953.             {
  954.                 *CustCursorOriginX:     %d{200}
  955.                 *CustCursorOriginY:     %d{PhysPaperLength - 200}
  956.                 *CustPrintableOriginX:  %d{200}
  957.                 *CustPrintableOriginY:  %d{200}
  958.                 *CustPrintableSizeX:    %d{PhysPaperWidth - 400}
  959.                 *CustPrintableSizeY:    %d{PhysPaperLength - 400}
  960.                 *Command: CmdSelect
  961.                 {
  962.                     *Order: PAGE_SETUP.4
  963.                     *Cmd: =ubyte =eLandscapeOrientation =attr_ubyte =Orientation
  964. +                         =uint16_xy %l{(PhysPaperWidth*254)/1200}%l{(PhysPaperLength*254)/1200} =attr_ubyte =CustomMediaSize
  965. +                         =ubyte =eTenthsOfAMillimeter =attr_ubyte =CustomMediaSizeUnits =BeginPage
  966. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  967.  
  968.                 }
  969.             }
  970.         }
  971.     }
  972. }
  973.  
  974. *%%% ======================
  975. *%%% PAGE_SETUP.1
  976. *%%% BeginPage(0x43)
  977. *%%%     Orientation(0x40), MediaSize(0x37), MediaSource(0x38)
  978. *%%%     ubyte               ubyte             ubyte
  979. *%%%     MediaSource
  980. *Feature: InputBin
  981. {
  982.     *rcNameID: =PAPER_SOURCE_DISPLAY
  983.     *DefaultOption: Option1
  984.     *Option: Option1
  985.     {
  986.         *rcNameID: =AUTO_DISPLAY
  987.         *Command: CmdSelect
  988.         {
  989.             *Order: PAGE_SETUP.1
  990.             *Cmd: =ubyte =eAutoSelect =attr_ubyte =MediaSource
  991.         }
  992.     }
  993.     *Option: Option2
  994.     {
  995.         *rcNameID: =TRAY1_DISPLAY
  996.         *Command: CmdSelect
  997.         {
  998.             *Order: PAGE_SETUP.1
  999.             *Cmd: =ubyte =eMultiPurposeTray =attr_ubyte =MediaSource
  1000.         }
  1001.     }
  1002.     *Option: Option3
  1003.     {
  1004.         *rcNameID: =TRAY2_DISPLAY
  1005.         *Command: CmdSelect
  1006.         {
  1007.             *Order: PAGE_SETUP.1
  1008.             *Cmd: =ubyte =eUpperCassette =attr_ubyte =MediaSource
  1009.         }
  1010.     }
  1011.     *Option: Option4
  1012.     {
  1013.         *rcNameID: =TRAY3_DISPLAY
  1014.         *Command: CmdSelect
  1015.         {
  1016.             *Order: PAGE_SETUP.1
  1017.             *Cmd: =ubyte =eLowerCassette =attr_ubyte =MediaSource
  1018.         }
  1019.     }
  1020.     
  1021.     *Option: Option7
  1022.     {
  1023.         *rcNameID: =MANUAL_FEED_DISPLAY
  1024.         *Command: CmdSelect
  1025.         {
  1026.             *Order: PAGE_SETUP.1
  1027.             *Cmd: =ubyte =eManualFeed =attr_ubyte =MediaSource
  1028.         }
  1029.     }
  1030. }
  1031.  
  1032. *%%% ======================
  1033. *%%% PAGE_SETUP.3
  1034. *%%% BeginPage(0x43)
  1035. *%%%     Orientation(0x40), MediaSize(0x37), MediaSource(0x38), MediaType
  1036. *%%%     ubyte               ubyte             ubyte
  1037. *%%%     MediaType
  1038. *Feature: MediaType
  1039. {
  1040.     *rcNameID: =MEDIA_TYPE_DISPLAY
  1041.     *DefaultOption: AutoSelect
  1042.  
  1043.     *Option: AutoSelect
  1044.     {
  1045.         *rcNameID: =AUTO_SELECT_DISPLAY
  1046.     }
  1047.     *Option: Plain
  1048.     {
  1049.         *rcNameID: =PLAIN_DISPLAY
  1050.         *Command: CmdSelect
  1051.         {
  1052.             *Order: PAGE_SETUP.3
  1053.             *Cmd: =ubyte_array =uint16 "<0500>" =ePlain =attr_ubyte =MediaType
  1054.         }
  1055.     }
  1056.     *Option: Preprinted
  1057.     {
  1058.         *rcNameID: =PREPRINTED_DISPLAY
  1059.         *Command: CmdSelect
  1060.         {
  1061.             *Order: PAGE_SETUP.3
  1062.             *Cmd: =ubyte_array =uint16 "<0a00>" =ePreprinted =attr_ubyte =MediaType
  1063.         }
  1064.     }
  1065.     *Option: Letterhead
  1066.     {
  1067.         *rcNameID: =LETTERHEAD_DISPLAY
  1068.         *Command: CmdSelect
  1069.         {
  1070.             *Order: PAGE_SETUP.3
  1071.             *Cmd: =ubyte_array =uint16 "<0a00>" =eLetterhead =attr_ubyte =MediaType
  1072.         }
  1073.     }
  1074.     *Option: Transparency
  1075.     {
  1076.         *rcNameID: =TRANSPARENCY_DISPLAY
  1077.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1078.         *Command: CmdSelect
  1079.         {
  1080.             *Order: PAGE_SETUP.3
  1081.             *Cmd: =ubyte_array =uint16 "<0c00>" =eTransparency =attr_ubyte =MediaType
  1082.         }
  1083.     }
  1084.     *Option: Prepunched
  1085.     {
  1086.         *rcNameID: =PREPUNCHED_DISPLAY
  1087.         *Command: CmdSelect
  1088.         {
  1089.             *Order: PAGE_SETUP.3
  1090.             *Cmd: =ubyte_array =uint16 "<0a00>" =ePrepunched =attr_ubyte =MediaType
  1091.         }
  1092.     }
  1093.     *Option: Labels
  1094.     {
  1095.         *rcNameID: =LABELS_DISPLAY
  1096.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1097.         *Command: CmdSelect
  1098.         {
  1099.             *Order: PAGE_SETUP.3
  1100.             *Cmd: =ubyte_array =uint16 "<0600>" =eLabels =attr_ubyte =MediaType
  1101.         }
  1102.     }
  1103.     *Option: Bond
  1104.     {
  1105.         *rcNameID: =BOND_DISPLAY
  1106.         *Command: CmdSelect
  1107.         {
  1108.             *Order: PAGE_SETUP.3
  1109.             *Cmd: =ubyte_array =uint16 "<0400>" =eBond =attr_ubyte =MediaType
  1110.         }
  1111.     }
  1112.     *Option: Recycled
  1113.     {
  1114.         *rcNameID: =RECYCLED_DISPLAY
  1115.         *Command: CmdSelect
  1116.         {
  1117.             *Order: PAGE_SETUP.3
  1118.             *Cmd: =ubyte_array =uint16 "<0800>" =eRecycled =attr_ubyte =MediaType
  1119.         }
  1120.     }
  1121.     *Option: Color
  1122.     {
  1123.         *rcNameID: =COLOR_DISPLAY
  1124.         *Command: CmdSelect
  1125.         {
  1126.             *Order: PAGE_SETUP.3
  1127.             *Cmd: =ubyte_array =uint16 "<0500>" =eColor =attr_ubyte =MediaType
  1128.         }
  1129.     }
  1130.     *Option: Light
  1131.     {
  1132.         *rcNameID: RESDLL.PCL5ResDLL.345
  1133.         *Command: CmdSelect
  1134.         {
  1135.             *Order: PAGE_SETUP.3
  1136.             *Cmd: =ubyte_array =uint16 "<0500>" =eLight =attr_ubyte =MediaType
  1137.         }
  1138.     }
  1139.     *Option: Heavy
  1140.     {
  1141.         *rcNameID: RESDLL.HPCSTRDLL.116
  1142.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1143.         *InsertBlock: =PaperConstraints
  1144.         *Command: CmdSelect
  1145.         {
  1146.             *Order: PAGE_SETUP.3
  1147.             *Cmd: =ubyte_array =uint16 "<0500>" =eHeavy =attr_ubyte =MediaType
  1148.         }
  1149.     }
  1150.     *Option: CardStock
  1151.     {
  1152.         *rcNameID: =CARDSTOCK_DISPLAY
  1153.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1154.         *InsertBlock: =PaperConstraints
  1155.         *Command: CmdSelect
  1156.         {
  1157.             *Order: PAGE_SETUP.3
  1158.             *Cmd: =ubyte_array =uint16 "<0a00>" =eCardstock =attr_ubyte =MediaType
  1159.         }
  1160.     }
  1161.     *Option: Glossy
  1162.     {
  1163.         *rcNameID: RESDLL.HPCSTRDLL.110
  1164.         *Command: CmdSelect
  1165.         {
  1166.             *Order: PAGE_SETUP.3
  1167.             *Cmd: =ubyte_array =uint16 "<0500>" =eGloss =attr_ubyte =MediaType
  1168.         }
  1169.     }
  1170.     *Option: HeavyGlossy
  1171.     {
  1172.         *rcNameID: RESDLL.HPCSTRDLL.705
  1173.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1174.         *InsertBlock: =PaperConstraints
  1175.         *Command: CmdSelect
  1176.         {
  1177.             *Order: PAGE_SETUP.3
  1178.             *Cmd: =ubyte_array =uint16 "<0b00>" =eHeavyGloss =attr_ubyte =MediaType
  1179.         }
  1180.     }
  1181.     *Option: ToughPaper
  1182.     {
  1183.         *rcNameID: RESDLL.HPCSTRDLL.706
  1184.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1185.         *Command: CmdSelect
  1186.         {
  1187.             *Order: PAGE_SETUP.3
  1188.             *Cmd: =ubyte_array =uint16 "<0a00>" =eGlossFilm =attr_ubyte =MediaType
  1189.         }
  1190.     }
  1191.     *Option: Envelope
  1192.     {
  1193.         *rcNameID: RESDLL.HPCSTRDLL.70
  1194.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1195.         *InsertBlock: =PaperConstraints
  1196.         *Command: CmdSelect
  1197.         {
  1198.             *Order: PAGE_SETUP.3
  1199.             *Cmd: =ubyte_array =uint16 "<0800>" =eEnvelope =attr_ubyte =MediaType
  1200.         }
  1201.     }
  1202. }
  1203.  
  1204. *%%% ======================
  1205. *%%% JOB_SETUP.6
  1206. *%%% DuplexPageMode(53(0x35))
  1207. *Feature: Duplex
  1208. {
  1209.     *rcNameID: =TWO_SIDED_PRINTING_DISPLAY
  1210.     *DefaultOption: NONE
  1211.     *Option: NONE
  1212.     {
  1213.         *rcNameID: =NONE_DISPLAY
  1214.         *Command: CmdSelect
  1215.         {
  1216.             *Order: JOB_SETUP.6
  1217.             *Cmd: "@PJL SET DUPLEX=OFF<0A>"
  1218.         }
  1219.     }
  1220.     *Option: VERTICAL
  1221.     {
  1222.         *rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
  1223.         *Command: CmdSelect
  1224.         {
  1225.             *Order: JOB_SETUP.6
  1226.             *Cmd: "@PJL SET DUPLEX=ON<0A>@PJL SET BINDING=LONGEDGE<0A>"
  1227.         }
  1228.     }
  1229.     *Option: HORIZONTAL
  1230.     {
  1231.         *rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
  1232.         *Command: CmdSelect
  1233.         {
  1234.             *Order: JOB_SETUP.6
  1235.             *Cmd: "@PJL SET DUPLEX=ON<0A>@PJL SET BINDING=SHORTEDGE<0A>"
  1236.         }
  1237.     }
  1238. }
  1239.  
  1240. *%-----------------------------------------------------------
  1241. *% Color Options (always send default, no ui switch)
  1242. *%-----------------------------------------------------------
  1243. *Feature: ColorOptions
  1244. {
  1245.     *rcNameID: RESDLL.HPCSTRDLL.145     *% "Color Treatment"
  1246.     *DefaultOption: Auto
  1247.     *Option: Auto
  1248.     {
  1249.         *rcNameID: =AUTO_DISPLAY
  1250.         *Command: CmdSelect
  1251.         {
  1252.             *Order: PAGE_SETUP.5
  1253.             *Cmd: =ubyte =eTonerBlack   =attr_ubyte =TextObjects
  1254. +                 =ubyte =eProcessBlack =attr_ubyte =RasterObjects
  1255. +                 =ubyte =eTonerBlack   =attr_ubyte =VectorObjects =SetNeutralAxis
  1256. +                 =ubyte =eHighLPI =attr_ubyte =TextObjects
  1257. +                 =ubyte =eHighLPI =attr_ubyte =RasterObjects
  1258. +                 =ubyte =eHighLPI =attr_ubyte =VectorObjects =SetHalftoneMethod
  1259. +                 =ubyte =eEnable =attr_ubyte =TextObjects
  1260. +                 =ubyte =eEnable =attr_ubyte =RasterObjects
  1261. +                 =ubyte =eEnable =attr_ubyte =VectorObjects =SetAdaptiveHalftoning
  1262. +                 =ubyte =eNormal =attr_ubyte =AllObjectTypes =SetColorTrapping
  1263. +                 =ubyte =eScreenMatch =attr_ubyte =ColorTreatment =SetColorTreatment
  1264.         }
  1265.     }
  1266. }
  1267.  
  1268.  
  1269.  
  1270. *%%% ======================
  1271. *%%% PAGE_SETUP.6
  1272. *%%% SetPageOrigin
  1273. *%%%     PageOrigin
  1274. *%%% SetPageScale
  1275.  
  1276. *%%% ======================
  1277. *%%% Added for PCL 6 color
  1278. *%%% ======================
  1279.  
  1280. *switch: ColorMode
  1281. {
  1282. *case: Mono
  1283. {
  1284.     *Command: CmdStartPage
  1285.     {
  1286.     *Order: PAGE_SETUP.6
  1287.     *Cmd: =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1288. +         =ubyte =eGray =attr_ubyte =ColorSpace =SetColorSpace
  1289.     }
  1290. }
  1291. *case: 24bpp
  1292. {
  1293.     *Command: CmdStartPage
  1294.     {
  1295.     *Order: PAGE_SETUP.6
  1296.     *Cmd: =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1297. +         =ubyte =eRGB =attr_ubyte =ColorSpace =SetColorSpace
  1298.     }
  1299. }
  1300. }
  1301.  
  1302.  
  1303. *%-----------------------------------------------------------
  1304. *% Ret
  1305. *%-----------------------------------------------------------
  1306. *Feature: RET
  1307. {
  1308.     *rcNameID: =PRINT_QUALITY
  1309.     *DefaultOption: True
  1310.     *Option: False
  1311.     {
  1312.         *rcNameID: =OFF_DISPLAY
  1313.         *Command: CmdSelect
  1314.         {
  1315.             *Order: JOB_SETUP.4
  1316.             *Cmd: "@PJL SET RET=OFF<0A>"
  1317.         }
  1318.     }
  1319.     *Option: True
  1320.     {
  1321.         *rcNameID: =ON_DISPLAY
  1322.         *Command: CmdSelect
  1323.         {
  1324.             *Order: JOB_SETUP.4
  1325.             *Cmd: "@PJL SET RET=MEDIUM<0A>"
  1326.         }
  1327.     }
  1328.     
  1329. }
  1330.  
  1331. *%% =======================
  1332. *%% Optional Input Trays
  1333. *%% =======================
  1334. *Feature: TRAY3
  1335. {
  1336.     *rcNameID: =TRAY3_DISPLAY
  1337.     *FeatureType: PRINTER_PROPERTY
  1338.     *DefaultOption: FALSE
  1339.     *Option: FALSE
  1340.     {
  1341.         *rcNameID: =NOT_INSTALLED_DISPLAY
  1342.     }
  1343.     *Option: TRUE
  1344.     {
  1345.         *rcNameID: =INSTALLED_DISPLAY
  1346.     }
  1347. }
  1348. *InvalidCombination: LIST(TRAY3.FALSE,InputBin.Option4)
  1349.  
  1350.  
  1351. *%% =======================
  1352. *%% Optional Duplex Unit
  1353. *%% =======================
  1354. *Feature: DuplexUnit
  1355. {
  1356.     *FeatureType: PRINTER_PROPERTY
  1357.     *rcNameID: =DUPLEX_UNIT_DISPLAY
  1358.     *DefaultOption: NotInstalled
  1359.     *Option: NotInstalled
  1360.     {
  1361.         *rcNameID: =NOT_INSTALLED_DISPLAY
  1362.         *DisabledFeatures: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1363.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1364.     }
  1365.  
  1366.     *Option: Installed
  1367.     {
  1368.         *rcNameID: =INSTALLED_DISPLAY
  1369.     }
  1370. }
  1371.  
  1372. *%%% ======================
  1373. *%%% Feature
  1374. *%%% Memory
  1375. *Feature: Memory
  1376. {
  1377.     *rcNameID: =PRINTER_MEMORY_DISPLAY
  1378.     *DefaultOption: 96MB
  1379.  
  1380.     *MemConfigMB: PAIR(96, 22)
  1381.     *MemConfigMB: PAIR(128, 38)
  1382.     *MemConfigMB: PAIR(160, 54)
  1383.     *MemConfigMB: PAIR(192, 70)
  1384.     *MemConfigMB: PAIR(224, 86)
  1385.     *MemConfigMB: PAIR(256, 102)
  1386.     *MemConfigMB: PAIR(288, 118)
  1387.     *MemConfigMB: PAIR(320, 134)
  1388.     *MemConfigMB: PAIR(352, 150)
  1389.     *MemConfigMB: PAIR(384, 166)
  1390. }
  1391.  
  1392.  
  1393. *%% =======================
  1394. *%% Optional Hard Disk
  1395. *%% =======================
  1396. *Feature: PrinterHardDisk
  1397. {
  1398.     *rcNameID: =PRINTER_HARDDISK_DISPLAY
  1399.     *FeatureType: PRINTER_PROPERTY
  1400.     *DefaultOption: FALSE
  1401.     *Option: FALSE
  1402.     {
  1403.         *rcNameID: =NOT_INSTALLED_DISPLAY
  1404.         *DisabledFeatures: LIST(Collate)
  1405.  
  1406.     }
  1407.     *Option: TRUE
  1408.     {
  1409.         *rcNameID: =INSTALLED_DISPLAY
  1410.     }
  1411. }
  1412.  
  1413. *%%% ======================
  1414. *%%% Printing attributes
  1415. *%%% ======================
  1416. *RotateCoordinate?: TRUE
  1417. *RotateRaster?: TRUE
  1418. *RotateFont?: TRUE
  1419. *EjectPageWithFF?: FALSE
  1420.  
  1421. *TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
  1422. *MemoryUsage: LIST(FONT)
  1423. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  1424. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  1425. *CursorYAfterSendBlockData: AUTO_INCREMENT
  1426. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  1427. *XMoveThreshold: 0
  1428. *YMoveThreshold: 0
  1429. *XMoveUnit: 1200
  1430. *YMoveUnit: 1200
  1431.  
  1432. *%%% *MinGrayFill: 1
  1433. *%%% *MaxGrayFill: 100
  1434.  
  1435. *%%% *OutputDataFormat: H_BYTE
  1436. *%%% *OptimizeLeftBound?: TRUE
  1437.  
  1438. *%%% ======================
  1439. *%%% TrueType fonts
  1440. *%%% ======================
  1441.  
  1442. *Feature: TrueTypeFormat
  1443. {
  1444.     *rcNameID: =TRUETYPE_FORMAT
  1445.     *DefaultOption: OUTLINE
  1446.     *Option: OUTLINE
  1447.     {
  1448.         *rcNameID: =TRUETYPE_OUTLINE
  1449.     }
  1450.     *Option: BITMAP
  1451.     {
  1452.         *rcNameID: =TRUETYPE_BITMAP
  1453.     }
  1454.     *Option: GRAPHICS
  1455.     {
  1456.         *rcNameID: =TRUETYPE_GRAPHICS
  1457.     }
  1458. }
  1459.  
  1460. *switch: TrueTypeFormat
  1461. {
  1462.     *case: OUTLINE
  1463.     {
  1464.         *FontFormat: HPPCL_OUTLINE
  1465.     }
  1466.     *case: BITMAP
  1467.     {
  1468.         *FontFormat: HPPCL
  1469.     }
  1470.     *case: GRAPHICS
  1471.     {
  1472.     }
  1473. }
  1474. *CharPosition: BASELINE
  1475. *TTFSEnabled?: FALSE
  1476. *MinFontID: 1
  1477. *MaxFontID: 65535
  1478. *MinGlyphID: 1
  1479. *MaxGlyphID: 1000
  1480.  
  1481. *%%% ======================
  1482. *%%% Cursor commands
  1483. *%%% ======================
  1484.  
  1485. *Command: CmdCR { *Cmd: "" }
  1486. *Command: CmdLF { *Cmd: "" }
  1487. *Command: CmdFF { *Cmd: "" }
  1488.  
  1489. *%%% SetCursor(0x6b)
  1490. *%%%     Point(76(0x40c)) uint_16
  1491. *%%% SetCursorRel(0x6c)
  1492. *%%%     Point(76(0x40c)) uint_16
  1493. *Command: CmdXMoveAbsolute
  1494. {
  1495.     *Cmd: ""
  1496. }
  1497. *Command: CmdXMoveRelRight
  1498. {
  1499.     *Cmd: ""
  1500.     *Params: LIST(DestXRel, TextXRes)
  1501. }
  1502. *Command: CmdXMoveRelLeft
  1503. {
  1504.     *Cmd: ""
  1505.     *Params: LIST(DestXRel, TextXRes)
  1506. }
  1507. *Command: CmdYMoveAbsolute
  1508. {
  1509.     *Cmd: ""
  1510.     *Params: LIST(DestY, TextYRes)
  1511. }
  1512. *Command: CmdYMoveRelDown
  1513. {
  1514.     *Cmd: ""
  1515.     *Params: LIST(DestYRel, TextYRes)
  1516. }
  1517. *Command: CmdYMoveRelUp
  1518. {
  1519.     *Cmd: ""
  1520.     *Params: LIST(DestYRel, TextYRes)
  1521. }
  1522. *%%% *Command: CmdPushCursor
  1523. *%%% *Command: CmdPopCursor
  1524.  
  1525. *%%% =======================
  1526. *%%% Font commands
  1527. *%%% =======================
  1528.  
  1529. *Command: CmdSetFontID { *Cmd : "" }
  1530. *Command: CmdSelectFontID
  1531. {
  1532.     *Cmd: ""
  1533.     *Params: LIST(FontHeight, CurrentFontID, TextYRes)
  1534. }
  1535.  
  1536. *Command: CmdSetCharCode
  1537. {
  1538.     *Cmd : ""
  1539. }
  1540.  
  1541. *Command: CmdBoldOn
  1542. {
  1543.     *Cmd : ""
  1544. }
  1545. *Command: CmdBoldOff
  1546. {
  1547.     *Cmd : ""
  1548. }
  1549. *%%% *Command: CmdItalicOn: "=real32_xy "<3ea1e4f700000000>" =attr_ubyte =eCharShear =SetCharShear"
  1550. *%%% *Command: CmdItalicOff: "=real32_xy "<0000000000000000>" =attr_ubyte =eCharShear =SetCharShear"
  1551. *%%% *Command: CmdWhiteTextOn:
  1552. *%%% *Command: CmdWhiteTextOff:
  1553. *%%% *Command: CmdSelectSingleByteMode:
  1554. *%%% *Command: CmdSelectDoubleByteMode:
  1555. *Command: CmdSetAnyRotation
  1556. {
  1557.     *Cmd: ""
  1558.     *Params: LIST(PrintDirInCCDegrees)
  1559. }
  1560. *Command: CmdSetSimpleRotation
  1561. {
  1562.     *Cmd: ""
  1563.     *Params: LIST(PrintDirInCCDegrees)
  1564. }
  1565.